package com.hp.easyBuy.entity.DTO;

import com.hp.easyBuy.entity.TGoodsCategory;

import java.util.List;
public class TGoodsCategoryDTO extends TGoodsCategory {
    private List<TGoodsCategory> goodsCategoriesList;

    public TGoodsCategoryDTO(List<TGoodsCategory> goodsCategoriesList) {
        this.goodsCategoriesList = goodsCategoriesList;
    }

    public TGoodsCategoryDTO(long categoryid, long parentid, String categoryname, long level) {
        super(categoryid, parentid, categoryname, level);
    }

    public TGoodsCategoryDTO(long categoryid, long parentid, String categoryname, long level, List<TGoodsCategory> goodsCategoriesList) {
        super(categoryid, parentid, categoryname, level);
        this.goodsCategoriesList = goodsCategoriesList;
    }

    public TGoodsCategoryDTO(TGoodsCategory tGoodsCategory) {

        super.setCategoryid(tGoodsCategory.getCategoryid());
        super.setCategoryname(tGoodsCategory.getCategoryname());
        super.setLevel(tGoodsCategory.getLevel());
        super.setParentid(tGoodsCategory.getParentid());
    }

    public TGoodsCategoryDTO() {
    }

    public List<TGoodsCategory> getGoodsCategoriesList() {
        return goodsCategoriesList;
    }

    public void setGoodsCategoriesList(List<TGoodsCategory> goodsCategoriesList) {
        this.goodsCategoriesList = goodsCategoriesList;
    }
}
